package com.zhaofujun.filequeue;

/**
 * 删除分段文件的策略
 */
public abstract class DeleteSegmentStrategy {
    protected FileQueue<?> fileQueue;

    public void setFileQueue(FileQueue<?> fileQueue) {
        this.fileQueue = fileQueue;
    }

    public abstract void start();
    public abstract void stop();

    protected void execute() {
        System.out.println("start delete segment file:");
        fileQueue.deleteSegmentFile();
    }

}

